<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<script src="/assets/js/jquery.min.js"></script>
<script src="/assets/layui.js"></script>
</head>
<body>
<script type="text/javascript">
$(function(){
	//这里就是看小曼进行传递了进行拼接过后的字符串 
	//angualar.js react.js vue.js  btocace.js require.js request respose 
	//php swolooe
	var str='{"place_id":1,"riqi":"2017.11.9","startime":["8","9","10"],"endtime":["9","10","11"],"type":[1,1,1],"appoint_fee":"23"}';
	$.post('/api/Venueappoint/makeAppointment',{obj:str},function(res){
		var obj=eval('(' + res +')');
		console.log(obj);
		if(obj.status=='1'){
			layui.use('layer', function(){
				  var layer = layui.layer;
				  
				  layer.msg('预约成功', {icon: 6}); 
				});              
		}else{
			layui.use('layer', function(){
				  var layer = layui.layer;
				  
				  layer.msg('预约失败');
				});              
		}
	});
})


</script>
</body>
</html>